package com.example.online_forum.services;

import com.example.online_forum.model.Board;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//@Service
public interface IBoardService {

    /**
     * 查询num记录
     * @param num
     * @return
     */
    List<Board> selectByNum(Integer num);

    /**
     * 更新板块的帖子数量
     * @param id
     * @return
     */
    void addOneArticleCountById(Long id);
    Board selectById(Long id);
    /**
     * 板块中的帖子数量-1
     */
    void subOneArticleCountById(Long id);

}
